﻿define(function (require, exports, module) {

    require('./Event.js');
    var Interface = require('../Interface');
    //接口列表
    var InstanceEventInterface = new Interface('IReader_InstanceEventHandler', ['OnBeforeInstance', 'OnExitInstance']);

    FXREADER.Event.IReader_InstanceEventHandler = function () {}

    FXREADER.Event.IReader_InstanceEventHandler.prototype =
    {
        //WebReader实例化之前进行的操作的事件
        OnBeforeInstance: function (callback, data) { },
        //WebReader退出程序之前进行的操作的事件
        OnExitInstance: function (callback, data) { }
    }

    FXREADER.Event.IReader_InstanceEventHandler.EnsureInterface = function (subclass) { //确保派生类实现相应接口
        Interface.ensureImplements(subclass, InstanceEventInterface);
    }

    return FXREADER.Event.IReader_InstanceEventHandler;
});